﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CFSystem.JXC.Model
{
    using System.ComponentModel;
    /// <summary>
    /// 商品信息
    /// </summary>
    public class ProductInfo
    {
        #region Product Properties
        //商品编号
        private string _prodID;
        [DisplayName("商品编号")]
        public string ProductID
        {
            get 
            { 
                return _prodID; 
            }
            set 
            { 
                _prodID = value; 
            }
        }
        //商品名称
        private String _prodName;
        [DisplayName("名称")]
        public string ProductName
        {
            get
            {
                return _prodName;
            }
            set
            {
                _prodName = value;
            }
        }
        //条形码
        private string _barCode;
        [DisplayName("条形码")]
        public string BarCode
        {
            get
            {
                return _barCode;
            }
            set 
            {
                _barCode = value;
            }
        }
        //商品类别编号
        private int _catergoryID;
        [Browsable(false)]
        public int CatergoryID
        {
            get
            {
                return _catergoryID;
            }
            set
            {
                _catergoryID = value;
            }
        }
        //商品类别名称
        private string _catergoryName;
        [DisplayName("类别")]
        public string CatergoryName
        {
            get
            {
                return _catergoryName;
            }
            set
            {
                _catergoryName = value;
            }
        }
        //规格编号
        private int _specID;
        [Browsable(false)]
        public int SpecificationID
        {
            get
            {
                return _specID;
            }
            set
            {
                _specID = value;
            }
        }
        //规格名称
        private string _specName;
        [DisplayName("规格")]
        public string SpecificationName
        {
            get
            {
                return _specName;
            }
            set
            {
                _specName = value;
            }
        }
        //颜色编号 
        private int _colorID;
        [Browsable(false)]
        public int ColorID
        {
            get
            {
                return _colorID;
            }
            set
            {
                _colorID = value;
            }
        }
        //颜色名称
        private string _colorName;
        [DisplayName("颜色")]
        public string ColorName
        {
            get
            {
                return _colorName;
            }
            set
            {
                _colorName = value;
            }
        }
        //计量单位编号
        private int _unitID;
        [Browsable(false)]
        public int UnitID
        {
            get
            {
                return _unitID;
            }
            set
            {
                _unitID = value;
            }
        }
        //计量单位名称
        private string _unitName;
        [DisplayName("单位")]
        public string UnitName
        {
            get
            {
                return _unitName;
            }
            set
            {
                _unitName = value;
            }
        }
        //库存数量
        private int _storeNumber;
        [DisplayName("库存数量")]
        public int StoreNumber
        {
            get
            {
                return _storeNumber;
            }
            set
            {
                _storeNumber = value;
            }
        }
        //库存单价
        private string _storePrice;
        [DisplayName("库存单价")]
        public string StorePrice
        {
            get
            {
                return _storePrice;
            }
            set
            {
                _storePrice = value;
            }
        }
        //参考售价
        private string _salePrice;
        [DisplayName("参考售价")]
        public string SalePrice
        {
            get
            {
                return _salePrice;
            }
            set
            {
                _salePrice = value;
            }
        }
        //参考进价
        private string _purchasePrice;
        [DisplayName("参考进价")]
        public string PurchasePrice
        {
            get
            {
                return _purchasePrice;
            }
            set
            {
                _purchasePrice = value;
            }
        }
        //品牌编号
        private int _brandID;
        [Browsable(false)]
        public int BrandID
        {
            get
            {
                return _brandID;
            }
            set
            {
                _brandID = value;
            }
        }
        //品牌名称
        private string _brandName;
        [DisplayName("品牌")]
        public string BrandName
        {
            get
            {
                return _brandName;
            }
            set
            {
                _brandName = value;
            }
        }    
        //备注信息
        private string _note;
        [DisplayName("备注")]
        public string Note
        {
            get
            {
                return _note;
            }
            set
            {
                _note = value;
            }
        }
        
        private bool _point;
        [Browsable(false)]
        public bool Point
        {
            get
            {
                return _point;
            }
            set
            {
                _point = value;
            }
        }

        private bool _discount;  
        [Browsable(false)]
        public bool Discount
        {
            get
            {
                return _discount;
            }
            set
            {
                _discount = value;
            }
        }
        #endregion

        #region Construtors
        public ProductInfo()
        {
            _prodID = string.Empty;
            _prodName = string.Empty;
            _barCode = string.Empty;
            _catergoryID = 0;
            _catergoryName = string.Empty;
            _specID = 0;
            _specName = string.Empty;
            _colorID = 0;
            _colorName = string.Empty;
            _unitID = 0;
            _unitName = string.Empty;
            _brandID = 0;
            _brandName = string.Empty;
            _purchasePrice = string.Empty;
            _salePrice  = string.Empty;
            _storeNumber = 0;
            _storePrice = string.Empty;
            _note = string.Empty;
            _point = false;
            _discount = false;
        }
        #endregion
    }
}
